package com.wpp.concurrent.demo4_wait_notify;

/**
 * @author wpp25
 * @date 2021/6/23 21:44
 * @description：
 */
public class ClientDemo4Test {


    public static void main(String[] args) {
        Demo4Queue demo4Queue = new Demo4Queue();

        new Thread(new Demo4ProduceRunnable(demo4Queue)).start();
        new Thread(new Demo4ConsumerRunnable(demo4Queue)).start();

        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.exit(0);

    }
}
